package business;

import com.sun.org.apache.regexp.internal.recompile;

import sun.print.resources.serviceui;
import models.LocationDistanciaTO;
import models.LocationTO;

public class LocationBusiness {

	public static LocationTO consultarEnderecoPorCep(String cep) {
		LocationTO location = new LocationTO();

		location.logradouro = "Rua Ribeirao Pires";
		location.bairro = "Santa Teresinha";
		location.cidade = "Santo André";
		location.estado = "SP";

		return location;
	}

	public static LocationDistanciaTO calcularDistancia(String cep1, String cep2) {
		LocationDistanciaTO distancia = new LocationDistanciaTO();

		LocationTO location = new LocationTO();

		location.logradouro = "Rua Ribeirao Pires";
		location.bairro = "Santa Teresinha";
		location.cidade = "Santo André";
		location.estado = "SP";

		distancia.origem = location;
		distancia.destino = location;
		distancia.distancia = 1101d;

		return distancia;
	}
}
